package com.hyt.it.ogt.data.enums;

/**
 * 评卷方式枚举
 *
 * @author liying
 */
public enum MarkTypeEnums {

    MARK_TYPE_FLOW("1", "流水评卷"),
    MARK_TYPE_CROSS("2", "交叉评卷"),
    ;
    private String code;
    private String desc;

    MarkTypeEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static MarkTypeEnums getMarkTypeEnumsByCode(String code) {
        for (MarkTypeEnums markTypeEnums : MarkTypeEnums.values()) {
            if (markTypeEnums.getCode().equals(code)) {
                return markTypeEnums;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }
}
